﻿/* 
	Deletes the selected Subtool (This checks to make sure the button exists before pressing.)
*/

/////////////////////////////////////////
// User Changeable Options ///////////////
/////////////////////////////////////////

/////////////////////////////////////////
/////////////////////////////////////////

[RoutineDef,Delete,

	[Loop,1000,
		[If,[IExists,Tool:SubTool:Delete],
			// Button has been found
			[IKeyPress,'2',[IPress,Tool:SubTool:Delete]]
			[LoopExit]
		,]
	]
	
]

[IButton,???,"Deletes the selected Subtool. (Use this button for Custom UI)",
	[IShowActions,0]
	[IConfig,4.8]
	//[IFreeze,
		[RoutineCall,Delete]
	//]
,,1/2,,,50]